MAS 863: How to Make (Almost) Anything

Input Device


1. Try out different sensor/code and learn from it


1)For the basic tutorial, we use Attiny 45 this time for connecting different sensors.





<Tutorial of Run Python code to read out serial output from Mac OX Lion and Windows 7>


1. Under Mac Bash Terminal


1)set up the python environment: python should be built in by default, check if mac has python by typing in:
python
If it has python, it shoud say:
"Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information. "




 


2. Pressing a button to light up a LED, and to change the color of digital canvas' background under Processing environment.

 

Firstly based on the switch tutorial, I modified the c program and make file. What I've achieved is that, by pressing the button, light can be lighted up, and the canvas run in processing can change background color.





3. Phototransistor to sense light


I am trying to make a light scanner to scan black & white image, by utilizing the different light reflection from black and white surfaces.

It's in progress. And now I am able to get signal inside python code. For the next step, I would like to build an array of phototransistor to scan larger area at the same time.






From Class Achive


All the board and code source files to read data from various sensors. Most of them are from Neil's class achive.

Important techniques imported in this week includes: anolog reading, voltage regulator, opamp, external and internal clock

Switch
Phototransistor
Step Response
Electret
Accelerometer



 


 


 


 

< Back to menu